package ai.people.netmon.userconfig;

import ai.people.netmon.framework.domain.userconfig.entity.DataSync;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 用户采集配置应用程序
 *
 * @author yuanqinglong
 * @date 2022/2/28 10:12
 */
@MapperScan("ai.people.netmon.userconfig.mapper")
@SpringBootApplication
@EnableConfigurationProperties({DataSync.class})
@EnableFeignClients("ai.people.core.feign")
public class UserConfigApplication {
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(UserConfigApplication.class, args);
    }

}
